package com.mydemo.redis;

import redis.clients.jedis.Jedis;

public class RedisTest {

    public static void main(String[] args) {
        Jedis jedis = new Jedis("127.0.0.1",6379);
        jedis.auth("123456");
        //jedis.set("name","kaishengit");
        String name = jedis.get("name");
        System.out.println(name);
        jedis.close();
    }


}
